-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat: add a sha256 implementation which is optimized for unconstrained runtime #9
Conversation
This should be good to go now. I've fixed the issue when building the benchmarks. |
Changes to circuit sizes
🧾 Summary (10% most significant diffs)
Full diff report 👇
|
let mut h: STATE = INITIAL_STATE; | ||
// Pointer into msg_block on a 64 byte scale | ||
for i in 0..num_full_blocks { | ||
let (msg_block, _) = build_msg_block(msg, message_size, BLOCK_SIZE * i); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
As we don't use the msg_byte_ptr
value, we can check to make sure that we're not unnecessarily calculating this value in build_msg_block
for this case.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
…
Description
Problem*
Resolves #7
Summary*
Throwing this up to start this work. We'd need to add better testing, remove all the duplicated code and restructure the library before merging this.
Additional Context
PR Checklist*
cargo fmt
on default settings.